<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2021/12/10
  Time: 16:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<script src="resources/js/jquery-1.8.3.min.js" type="text/javascript"></script>
<script src="resources/js/m_ajax.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function(){
        var update="${update}";
        if(update!=""){
            alert(update);
            return false;
        }
        $("#submit").click(function (){
            var username=$("#username").val();
            var password=$("#password").val();
            var id=$("#id").val();
            if(username==""){
                alert("账号不能为空!");
                return false;
            }
            if(password==""){
                alert("密码不能为空!");
                return false;
            }
            if(id==""){
                alert("id不能为空");
                return false;
            }
        });
    });
</script>
<form action="update" method="post">
    <p>请输入你要修改的id:<input type="text" name="id"></p>
    <p>用户名:<input type="text" name="username"></p>
    <p>密码:<input type="password" name="password"></p>
    <p><input type="submit" id="submit"></p>
</form>
<a href="login.jsp">返回</a>
</body>
</html>
